﻿using Microsoft.ApplicationBlocks.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DevExpressWebApplication1.Utils
{
    public class CusGroupUtils
    {
        public static Boolean Insert(string cusGroupName, string Description)
        {
            int id = SqlHelper.ExecuteNonQuery(DataServices.ConnectString, "sp_Group_Insert", cusGroupName, Description, 1);
            bool isSuccess = false;
            if (id > 0)
                isSuccess = true;
            return isSuccess;
        }

        public static Boolean Update(string cusGroup_id, string cusGroupName, string Description)
        {
            int id = SqlHelper.ExecuteNonQuery(DataServices.ConnectString, "sp_Group_Update", cusGroup_id, cusGroupName, Description);
            bool isSuccess = false;
            if (id > 0)
                isSuccess = true;
            return isSuccess;
        }
    }
}